package com.lkx.farmershop.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;

/**
 * (Collect)实体类
 *
 * @author makejava
 * @since 2025-02-09 15:33:51
 */
@Getter
@Setter
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Collect implements Serializable {
    private static final long serialVersionUID = -42607042347294788L;
    /**
     * 唯一id
     */
    @TableId
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 组团id
     */
    private Long tuanId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getTuanId() {
        return tuanId;
    }

    public void setTuanId(Long tuanId) {
        this.tuanId = tuanId;
    }

    public Collect(Long tuanId, Long userId) {
        this.tuanId = tuanId;
        this.userId = userId;
    }
}

